<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/SystemCenter/organization.css">
<div  class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>组织机构</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-btn-group">
                <div class="layui-btn-container">
                    <button class="layui-btn layui-btn-sm" id="btn-expand">全部展开</button>
                    <button class="layui-btn layui-btn-sm layui-btn-normal" id="btn-fold">全部折叠</button>
                </div>
                <i style="width: 1px;background: #fffceb"></i>
                <%--<button class="layui-btn layui-btn-sm" id="btn-intab">新增公司</button>--%>
            </div>
            <table class="layui-table" id="Lay_category_treeTable" lay-filter="Lay_category_treeTable"></table>
        </div>
    </div>
</div>
<script type="text/html" id="updateAndDelete">
    <div class="layui-btn-groups">
                <button type="button" class="layui-btn layui-btn-sm  layui-btn-normal" onclick="toOpenNewLayer('{{d.pid}}','{{d.code}}')"
                style="width: 80px;">{{d.code=='0'?'添加公司':'添加子部门'}}</button>
        <span style="width: 1px;background: #e6e6e6;"></span>
        <div>
            <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="toOpenUpdateLayer('{{d.id}}','{{d.pid}}','{{d.code}}')">
                修改
            </button>
            <button type="button" class="layui-btn layui-btn-sm layui-btn-danger" onclick="doDelete('{{d.id}}','{{d.name}}','{{d.list.length}}')">
                删除
            </button>
        </div>
    </div>
</script>
<%@ include file="../tpl/foot.jsp"%>
<%--layui扩展文件,树形表格--%>
<script src="statics/js/SystemCenter/organization.js"></script>